package day16.晚间练习.tcp发送和接收数据;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class ClientDemo {
    public static void main(String[] args) throws IOException {
        Socket s=new Socket("192.168.23.127",10001);
        OutputStream os=s.getOutputStream();
        String s1="你们的爸爸来了";
        os.write(s1.getBytes());
        s.close();
    }
}
